package com.xquant.marketdata.marketdata.service.impl;

import com.github.pagehelper.PageInfo;
import com.xquant.marketdata.curvestrip.domain.TirCurveDTO;
import com.xquant.marketdata.marketdata.mapper.TirCurveMapper;
import com.xquant.marketdata.marketdata.service.TirCurveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Auther: B946
 * @Date: 23/12/2019 10:17
 * @Description:
 */
@Service
public class TirCurveServiceImpl implements TirCurveService {


    @Autowired
    private TirCurveMapper tirCurveMapper;

    @Override
    public PageInfo<Map>   queryTirCurveInfoByPage(Map<String,Object> params){
          List<Map> list = tirCurveMapper.queryTirCurveInfoByPage(params);
        return new PageInfo<Map>(list);
    }
    @Override
    public List<TirCurveDTO> queryTirCurvePriceByPage(Map<String,Object> params){
        List<TirCurveDTO>  list = tirCurveMapper.queryTirCurvePriceByPage(params);
        return list;
    }


}
